package com.fh.shop.api.common;

public enum PayTypeEnum {

    ALI_PAY(1),
    WX_PAY(2);

    private int payType;

    private PayTypeEnum(int payType) {
        this.payType = payType;
    }

    public int getPayType() {
        return payType;
    }

    public static boolean isValidateType(int payType) {
        PayTypeEnum[] values = PayTypeEnum.values();
        for (PayTypeEnum value : values) {
            if (value.getPayType() == payType) {
                return true;
            }
        }
        return false;
    }
}
